Re: [GENERAL] char(xx) problem

Поиск
Список
Период
Сортировка
От Herouth Maoz
Тема Re: [GENERAL] char(xx) problem
Дата
Msg-id l03130301b4851b846903@[147.233.159.109]
обсуждение исходный текст
Ответ на Re: [GENERAL] char(xx) problem  ("Gene Selkov, Jr." <selkovjr@mcs.anl.gov>)
Ответы Re: [GENERAL] char(xx) problem
Список pgsql-general
At 4:02 +0200 on 17/12/1999, Gene Selkov, Jr. wrote:


> I'm just wondering: are there any alternatives to blank padding? Why
> is it done in the first place?

That's how fixed-length char type works, since the early days of SQL. You
come to expect it, which means that if you use legacy code that has a
fixed-width char type, or you decided to use it for its time-saving
possibilities, it should behave according to some way which has been
established long ago.

What I don't get is why, given two bpchar argument, Postgres doesn't just
pad the shorter one to the length of the other and then compares, selects
and whatnot.

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herouth/personal/



В списке pgsql-general по дате отправления:

Предыдущее
От: postgres@taifun.interface-business.de
Дата:
Сообщение: RE: [GENERAL] Announce: Postgres Access Control Tool
Следующее
От: Karl DeBisschop
Дата:
Сообщение: Cannot index large table in 6.5.3 on Linux